<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store,no-cache">
    <meta name="Handheldfriendly" content="true">
    <meta name="viewport" content="width=100%; initial-scale=1.0; user-scalable=yes">
    <meta name="robots" content="all">
    <meta name="keywords" contect="doodle, mobile, doodlemobile, game, games">
    <meta name="description" content="Make People's Mobile Life More Connected Through Games.">

    <title>jsandroid_test</title>

    <script type="text/javascript" language="javascript">
      
    function showHtmlcallJava(){  
        var str = window.jsObj.HtmlcallJava();  
        alert(str);  
    }  
      
    function showHtmlcallJava2(){  
        var str = window.jsObj.HtmlcallJava2("有参");
        alert(str);  
    }  
      
    function showFromHtml(){
        document.getElementById("id_input").value = window.jsObj.HtmlcallJava2("java call html!!!!!!");
    }
      
    function showFromHtml2( param ){  
        document.getElementById("id_input2").value = "Java call Html : " + param;
    }  

    </script>
</head>


<body>

Java Native 方法与 JS 互相调用实例

<br>
<br>
<br>

<input type="button" value="HtmlcallJava" onclick="showHtmlcallJava()"/>
<br>
<br>
<input type="button" value="HtmlcallJava2" onclick="showHtmlcallJava2()"/>

<br>
<br>

<input id="id_input" style="width: 100%" type="text" value="null"/>
<br>
<input type="button" value="JavacallHtml" onclick="window.jsObj.JavacallHtml()"/>

<br>
<br>

<input id="id_input2" style="width: 90%" type="text" value="null"/>
<br>
<input type="button" value="JavacallHtml2" onclick="window.jsObj.JavacallHtml2()"/>

</body>
</html> 